package books;

import java.util.Scanner;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class TestBooks {
    public static void main(String[] args) {

       Books infor = new Books();
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入图书信息：");
        System.out.print("请输入书籍名称：");
        String name = sc.next();
        infor.setName(name);
        System.out.print("请输入作者名：");
        String author = sc.next();
        infor.setAuthor(author);
        System.out.print("请输入出版社：");
        String press = sc.next();
        infor.setPress(press);
        System.out.print("请输入价格：");
        double price = sc.nextDouble();
        infor.setPrice(price);
        infor.info(infor);
    }
}
